body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* 防止横向滚动 */
}
.main{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center; 
    padding: 0 0 20px 0; 
}
.header{
    background-color: #8B0000;
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
}
.nav{
    margin-top: 0;
    background: #F5F5F5;
    width: 100%; 
}
.nav > ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav > ul > li {
    margin: 0;
    position: relative;
}
.nav > ul > li > a {
    display: block;
    color: #8B0000;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}
.nav > ul > li > a:hover {
    background: #E0E0E0;
    color: #000;
}
/* .nav ul{
    display: flex;
    justify-content: center;
    list-style: none;
    background: #F5F5F5;
    padding: 10px 0;
    margin-top: 0;
}
.nav li{
    margin: 0 15px;
    position: relative;
}
.nav a{
    color: #8B0000;
    text-decoration: none;
    padding: 10px 15px;
    transition: 0.3s;
}
.nav a:hover{
    background: #E0E0E0;
    color: #000;
} */
.nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #F5F5F5;
    z-index: 100;
    min-width: 72px;
    padding: 0;
    list-style: none;
}
.nav .d1:hover .submenu {
    display: block;
}
.nav .submenu li {
    margin: 0;
}
.nav .submenu a {
    display: block;
    padding: 10px 15px;
    text-align: left;
    color: #8B0000;
    text-decoration: none;
}
.nav .submenu a:hover {
    background: #E0E0E0;
    color: #000;
}
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px; /* 增加容器底部边距 */
    /* padding: 0 15px; 新增：添加内边距，避免标题紧贴边缘 */
}
.card {
    flex: 1 1 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    min-width: 300px;
}
.card:hover {
    transform: translateY(-5px);
}
.card-img {
    height: 200px;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    padding: 15px;
}
.card-content h3 {
    color: #8B0000;
    margin-top: 0;
    border-bottom: 1px solid #8B0000;
    padding-bottom: 10px;
}
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1px 0;
    margin-top: auto;
    width: 100%;
}
.footer p {
    font-size: 13px;
    line-height: 1.3; /* 减小行高 */
}


.section-title {
    width: 100%;
    padding: 20px 0;
    margin: 30px 0 15px;
    border-bottom: 2px solid #8B0000;
}

.section-title h2 {
    color: #8B0000; 
    font-size: 29px;
    margin: 0;
    padding-left: 15px;
}
.swiper {
    width: 1500px;
    height: 600px;
    margin-top: 20px;
}  
.swiper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-slide .swiper-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    z-index: 10;
    text-align: center;
}